package com.iflytek.universitymanagement.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iflytek.universitymanagement.domain.TopicSelect;
import com.iflytek.universitymanagement.mapper.TopicSelectMapper;
import com.iflytek.universitymanagement.service.TopicSelectService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TopicSelectServiceImpl extends ServiceImpl<TopicSelectMapper, TopicSelect> implements TopicSelectService {

    public List<TopicSelect> getOptionsByTid(Integer tid) {
        return baseMapper.getOptionsByTid(tid);
    }

    @Override
    public List<TopicSelect> getAllOptions() {
        return null;
    }

//    @Override
//    public int calculateTotalScore(List<SurveyQuestionController.AnswerRequest> answers) {
//        return 0;
//    }

//    @Override
//    public int calculateTotalScore(List<SurveyQuestionController.AnswerRequest> answers) {
//        return 0;
//    }

    /**
     * 计算总分
     *
     * @param answers 用户提交的答案列表
     * @return 总分
     */

}